<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:insert="~{include :: header('操作日志详细')}" />
	<th:block th:insert="~{include :: jsonview-css}" />
</head>
<body class="hold-transition">
<div class="container-fluid mt-2 mb-2">
	<form class="form-horizontal m-t" id="signupForm">
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">操作模块</label>
			<div class="col-form-label" th:text="${operLog.title} + ' / ' + ${@dict.getLabel('sys_oper_type',operLog.businessType)}">
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">登录信息</label>
			<div class="col-form-label" th:text="${operLog.operName} + ' / ' + ${operLog.operIp}+ ' / ' + ${operLog.operLocation}">
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">请求地址</label>
			<div class="col-form-label" th:text="${operLog.operUrl}">
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">请求方式</label>
			<div class="col-form-label" th:text="${operLog.requestMethod}">
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">操作方法</label>
			<div class="col-form-label" th:text="${operLog.method}">
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">请求参数</label>
			<div class="col-form-label"><pre id="operParam"></pre></div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">返回参数</label>
			<div class="col-form-label"><pre id="jsonResult"></pre></div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label text-sm-right">状态</label>
			<div class="col-form-label">
				<span th:class="${operLog.status == 0 ? 'label label-primary' : 'label label-danger'}" th:text="${operLog.status == 0 ? '正常' : '异常'}">
				</span>
			</div>
		</div>
		<div class="form-group" th:style="'display:' + ${operLog.status == 0 ? 'none' : 'block'}">
			<label class="col-sm-2 col-form-label text-sm-right">异常信息</label>
			<div class="col-form-label" th:text="${operLog.errorMsg}">
			</div>
		</div>
	</form>
    </div>
    <th:block th:insert="~{include :: footer}" />
    <th:block th:insert="~{include :: jsonview-js}" />
    <script th:inline="javascript">
	    $(function() {
	    	var operParam = [[${operLog.operParam}]];
	    	if ($.common.isNotEmpty(operParam) && operParam.length < 2000) {
	    		$("#operParam").JSONView(operParam);
	    	} else {
	    		$("#operParam").text(operParam);
	    	}
	    	var jsonResult = [[${operLog.jsonResult}]];
	    	if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
	    		$("#jsonResult").JSONView(jsonResult);
	    	} else {
	    		$("#jsonResult").text(jsonResult);
	    	}
	    });
    </script>
</body>
</html>